package com.ibangnuo.manage.controller;

import com.ibangnuo.api.AdminControllerApi;
import com.ibangnuo.framework.domain.request.AdminEntityQueryPageRequest;
import com.ibangnuo.framework.model.response.QueryResponseResult;
import com.ibangnuo.manage.service.AdminEntityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: wwy
 * @Date: 2019-12-18 17:14
 */
@RestController
@RequestMapping("/api/admin")
public class AdminEntityController implements AdminControllerApi {
    @Autowired
    private AdminEntityService adminEntityService;
    @GetMapping("/list/{page}/{size}")
    @Override
    public QueryResponseResult findList(@PathVariable("page") int page, @PathVariable("size") int size, AdminEntityQueryPageRequest adminEntityQueryPageRequest) {
        return adminEntityService.findList(page,size,adminEntityQueryPageRequest);
    }
}
